<template>
  <div class="home">
    <Header></Header>
    <Subject></Subject>
    <Footer></Footer>
  </div>
</template>

<script lang="ts">
import Header from './Header/index.vue'
import Subject from './Subject/index.vue'
import Footer from './Footer/index.vue'
export default {
  name: 'Home',
  components: {
    Header,
    Subject,
    Footer
  }
}
</script>
<script lang="ts" setup>
import { onMounted } from 'vue'
import { useReportDataStore } from '@/stores/reportData'
const reportDataStore = useReportDataStore()
// 页面挂载完毕就发送请求 获取数据
onMounted(() => {
  reportDataStore.getReportData()
})
</script>

<style scoped>
.home {
  width: 100%;
  height: 100%;
  padding: 20px;
  background-color: #eee;
}
</style>
